package com.topnav.mc.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.topnav.mc.entity.base.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 设备定位实体类
 */
@Data
@Accessors(chain = true)
@TableName("mc_device_position")
public class DevicePosition extends BaseEntity {
    private Long deviceId;
    private Long channelId;
    private String deviceCode;
    private String channelCode;
    private String deviceName;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date time;
    private Double longitude;

    private Double latitude;
    //private Double altitude;
    private Double speed;
    private Double direction;

    private String coordinateSystem="WGS84"; //坐标系 WGS84，GCJ02
}
